<?php

	//Startar en session
	session_start();
	
	//Hämtar in nödvändiga filer
	require_once ("LoginController.php");
	require_once ("LoginView.php");
	require_once ("LoginHandler.php");
	
	//initierar variabler.
	$title = "Formulär för inloggning - Labb2";
	
	//Initierar instanser.
	$lw = new LoginView();
	$lh = new Loginhandler();
	$lc = new LoginController();
	$controller = $lc->DoControl($lw, $lh);

?>

<!DOCTYPE HTML>

<html>
	
<head>
	<meta charset="UTF-8" />
	<title><?php echo $title; ?></title>
	<link rel=stylesheet href="style.css" type="text/css" >
</head>
<body>
<div id="wrapper">	
<form method='post'>
	<?php
	echo $controller;
	?>
</form>
</div>
</body>	
	
	
</html>